package com.czy.controller;

import com.czy.common.Result;
import com.czy.model.Friend;
import com.czy.service.FriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Author: czy
 * @Date: 2019/11/12 10:22
 */
@Controller
@RequestMapping("/friend")
public class FriendController {
    @Autowired
    private FriendService friendService;

    @RequestMapping("/getFriendList")
    @ResponseBody
    public Result getFriendList(){
        return friendService.getFriendList();
    }
}
